package Service;

import Dao.Dao;
import Model.student;

import java.sql.SQLException;
import java.util.ArrayList;

public class Updateservice {
    public void update(student student) throws SQLException {
        Dao dao = new Dao();
        dao.update(student);
    }

    public  student selectOneService(Integer id) throws SQLException {
        Dao dao = new Dao();
        student student1 = dao.selectoneDao(id);
        return student1;

    }
}
